//
//  ARTUserModel.m
//  ChartsDemo
//
//  Created by yunda on 2022/5/17.
//

#import "ARTUserModel.h"

@implementation ARTUserModel

- (void)storeUser{
    NSDictionary *dict = [self mj_JSONObject];
    [NSUserDefaults jk_setObject:dict forKey:ART_Storage_UserInfo];
}

+ (ARTUserModel *)getUser{
    NSDictionary *dict = [NSUserDefaults jk_dictionaryForKey:ART_Storage_UserInfo];
    if (!dict) {
        return nil;
    }
    ARTUserModel *model = [ARTUserModel mj_objectWithKeyValues:dict];
    return model;
}

@end
